<?php

namespace MyBlog\Models;

use Illuminate\Database\Eloquent\Model;

class Tag extends Model
{
    protected $guarded = array('id');

    public function getState() {
        $state = '正常';
        if($this->disabled) {
            $state = '禁用';
        }
        return $state;
    }
}
